package com.xinzhi.service.impl;

import com.xinzhi.mapper.DeleteappraisalMapper;
import com.xinzhi.service.DeleteappraisalService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeleteappraisalServiceImpl implements DeleteappraisalService {
    @Autowired
    private DeleteappraisalMapper deleteappraisalMapper;

    
    /**
     * 特殊加分里的逻辑删除
     * @param object
     * @param deleted
     * @return
     */
    @Override
    public Result updateByPrimaryKey(String object, Integer deleted) {
        int i = deleteappraisalMapper.updateByPrimaryKey(object, deleted);
        if (i == 1) {
            return Result.ok("删除成功");
        } else {
            return Result.error("删除失败");
        }
    }

}
